package com.itheima.configuration;

import com.itheima.client.UserClientDemotion;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableFeignClients(basePackages = "com.itheima.client")
public class FeignConfiguration {
    @Bean
    Logger.Level FeignLoggerLevel(){
        return Logger.Level.FULL;
    }


    @Bean
    public UserClientDemotion addUserClientDemotion(){
        return new UserClientDemotion();
    }
}
